<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="box1">
        <div class="box2"></div>
    </div>
</body>
<style>
    .box1{
        height: 700px;
        width: 700px;
        background-color: blue;
        /* display: flex;
        align-items: center;
        justify-content: center; */
        /* text-align: center; */
    }
    .box2{
        height: 300px;
        width: 300px;
        background-color: brown;
        /* margin: auto; */
        /* display:inline-block;
         */
         transform: translate(0,-50%);
    }
</style>
</html>
